package chenji.moreitemfunapi.textures.info;

import java.io.File;
import java.util.Properties;

import org.bukkit.Material;

public class BowInfo extends TextureInfo {
	private static final String TYPE = "item";
	private static final String STANDBY = "bow_standby";
	private static final String PULLING_0 = "bow_pulling_0";
	private static final String PULLING_1 = "bow_pulling_1";
	private static final String PULLING_2 = "bow_pulling_2";

	protected BowInfo(String pluginName, String itemName, Material itemtype ) {
		super(pluginName, itemName, itemtype);
		super.addTexture(STANDBY);
		super.addTexture(PULLING_0);
		super.addTexture(PULLING_1);
		super.addTexture(PULLING_2);
	}

	@Override
	public Properties getProperties() {
		return super.getProperties(TYPE);
	}

	@Override
	public boolean isDone() {
		return super.getNotUpdatedTextures().isEmpty();
	}

	@Override
	public boolean update(String name, File path) {
		super.auts.remove(name);
		return true;
	}

	@Override
	public String getPropertiesFileName() {
		return  super.getItemName();
	}

}
